using System;

namespace Crawler.Domain.Sources
{
	public class MovieProcessableSource : ProcessableSource
	{
		public MovieProcessableSource(TorrentSource source, string crawlSessionId, string absoluteUri, string text)
			: base(crawlSessionId, absoluteUri, text)
		{
			Source = source;
		    if(absoluteUri.StartsWith(@"http://www.yify-torrent.org/movie/"))
				IdInSource= new Uri(absoluteUri).Segments[2].Replace("/",string.Empty).Trim();
		}

		public TorrentSource Source { get; private set; }
		public string IdInSource { get; private set; }
	}
}